package baseFx.common.config.apollo;

import com.ctrip.framework.apollo.core.enums.Env;

public class ApolloConfig {
    public static void setAddress(Env env, String address) {
        ApolloMetaServerProvider.envAddress.put(env, address);
    }

    public static void setAppId(String appId) {
        ApolloApplicationProvider.appId = appId;
    }

    public static void setCluster(String cluster) {
        if (cluster != null) {
            System.setProperty("apollo.cluster", cluster);
        }
    }
}
